package com.zh.system.domain.dto;

import com.zh.web.enums.CrawlSource;
import com.zh.web.enums.CrawlType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("爬虫开启参数")
public class CrawlDto {
    @ApiModelProperty(value = "爬取类型", example = "100")
    private CrawlType crawlType = CrawlType.ARTICLE;
    @ApiModelProperty(value = "爬取来源", example = "100")
    private CrawlSource crawlSource = CrawlSource.BILIBILI;
    @ApiModelProperty(value = "关键词", example = "劳动法")
    private String keyword;
    @ApiModelProperty(value = "排序规则", example = "pubdate")
    private String orderBy = "pubdate";
    @ApiModelProperty(value = "起始时间",example = "2024-01-01T00:00:00")
    private LocalDateTime startTime;
    @ApiModelProperty("是否开启")
    private Boolean enabled;
}
